<template>
    <div>
        <google-create v-if="this.$route.query.adPlatform == 'Google'" edit="edit-ad"/>
        <ad-create v-else="this.$route.query.adPlatform == 'Facebook'" edit="edit-ad"/>
    </div>
</template>

<script>
    import Vue from 'vue'
    import { mapGetters } from 'vuex'
    import { Row,Col,steps,step,collapse,collapseItem,ButtonGroup } from 'element-ui'
    import AdCreate from '~components/create/ad-create.vue'
    import GoogleCreate from '~components/create/google-create.vue'

    Vue.use(Row)
    Vue.use(Col)
    Vue.use(steps)
    Vue.use(step)
    Vue.use(collapse)
    Vue.use(collapseItem)
    Vue.use(ButtonGroup)

    export default {
        components: {
            AdCreate,
            GoogleCreate,
        },
        data() {
            return {
                title: '广告编辑'
            };
        },
        head() {
            return {
                title: this.title
            }
        },
        computed: {
            ...mapGetters([
                "adPlatform"
            ])
        },
        methods: {


        },
        created() {

        }
    }
</script>

<style lang="scss">


</style>